package com.gitee.zhanyao.common.service.generator.id.strategy;


import com.gitee.zhanyao.common.service.generator.id.IdGenerator;
import org.springframework.stereotype.Service;

import java.util.UUID;

/**
 * 32 位 UUID 生成策略
 */
@Service
public class UUID32Strategy implements IdGenerator<String> {

    @Override
    public String generateId() {
        return UUID.randomUUID().toString().replaceAll("-", "");
    }

}
